<?php include_partial('camara/subMenuAcoes', array('camara' => $acao->getProposicao()->getCamara())) ?> 

  <h3><?php echo $acao->getName() ?>
    <small> - <?php echo $acao->getProposicao() ?></small>
  </h3>
  <h4>
    <?php echo $acao->Proposicao->Camara->Usuario->name ?>
    <small> - <?php echo date('d/m/Y' , strtotime($acao->getdtLimiteConclusao())) ?></small>
  </h4>

<?php echo $acao->getde_acao() ?>

<p>
<?php echo button_to('Editar','acao/edit?cd_acao='.$acao->getCdAcao(),'class="btn"') ?>
<hr />
</p>
  
<h4>Providências:</h4>

<table>
  <tbody>
    <?php foreach ($providencias as $i => $providencia): ?>
    <tr class="<?php echo fmod($i, 2) ? 'even' : 'odd' ?>">
      <td><strong><?php echo date('H:i - d/n',strtotime($providencia->getCreatedAt())) ?></strong>
	      - <small><?php echo $providencia->getUsuario() ?></small>
	  </td>
      <td>
      	<?php echo $providencia->getDeProvidencia() ?>
	  </td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

<p>
<?php include_partial('formProvidenciaAcao', array('form' => $form)) ?>
</p>